By using Keystone Carbonite, routes an entity count request to the underlying data store.

Namespace: Keystone.Clockwork.To.Carbonite
Assembly: Keystone.Clockwork.To.Carbonite (in Keystone.Clockwork.To.Carbonite.dll)

public class Count<TEntity, TDao, TEntityCollection, TDataContext, TFilteringCriteria, TOrderingCriteria, TPagingCriteria, TCarboniteController, TTransaction, TTransactionCreationParameters> : Gear<int
where TDao : IDao<TEntity, TEntityCollection, TFilteringCriteria, TOrderingCriteria, TPagingCriteria> 
where TEntityCollection : IEnumerable<TEntity> 
where TCarboniteController : CarboniteController<TDataContext, TTransaction, TTransactionCreationParameters>
This language is not supported or no code example is available.

Type Parameters

TEntity

The entity to manage type.

TDao

The DAO type.

TEntityCollection

The entity collection type.

TDataContext

The data store context type.

TFilteringCriteria

The filtering criteria type to use in persistence operations.

TOrderingCriteria

The ordering criteria type to use in read operations.

TPagingCriteria

The paging criteria type to use in read operations.

TCarboniteController

The carbonite controller type that will host instances of TDao.

TTransaction

The transaction type to use in persistence operations.

TTransactionCreationParameters

The transaction creation parameters type.

Return Value

The number of requested entities.

Windows, Windows Server, OS X, macOS, iOS, tvOS, Android, Linux, AWS, Azure

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 4.6

Others

Xamarin, Mono